const express = require("express");

var router = express.Router()

// 引入外部模块
const user = require("./admin/user");
const nav = require("./admin/nav");
const login = require("./admin/login");

// 配置外部路由模块
router.use("/user", user);
router.use("/nav", nav);
router.use("/login", login);

router.get("/", (req, res) => {
    res.send("后台管理");
})

module.exports = router